'''
运算符
'''

##算术运算符
# 例2-14 幂运算

a = 3 ** 2  # 求3的2次方
b = 2 ** 3  # 求5的3次方
print("a=", a)
print("b=", b)
c = a ** 0.5  # 开平方
print("c=", c)

# 例2-15 取模运算

f = 10 % 3
print("f=", f)

# 例2-16 取整运算

z = 10 // 3
print("z=", z)

# 例2-17 算术运算符优先级
print(10 + 5 * 3 ** 2)

# 例2-18 逻辑运算符优先级
a = True
b = False
c = True

print(not a and b or c)
